home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
dev
/
misc
/
fontreqclass10.lha
/
FontReqClass10
/
FontReqClassTest.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-17
|
868b
|
46 lines
#include <proto/asl.h>
#include <proto/intuition.h>
#include <clib/alib_protos.h>
#include <Boopsi/FontReqClass.h>
#include <stdio.h>
#ifdef _DCC
#include <lib/Misc.h>
#endif
main( int argc, char **argv )
{
Class *FontReqClass=NULL;
Object *ReqObj=NULL;
ULONG t;
FontReqClass=InitFontReqClass();
if( FontReqClass )
{
ReqObj = NewObject( FontReqClass, NULL, ASLFO_FixedWidthOnly, TRUE, TAG_END );
if( FontRequester( ReqObj ) )
{
GetAttr( FC_TTextAttr, ReqObj, &t );
printf("FontName: %s\n", ((struct TTextAttr *)t)->tta_Name );
}
DisposeObject( ReqObj );
FreeFontReqClass( FontReqClass );
}
return(0);
}
#ifdef _DCC
int wbmain( struct WBStartup *w )
{
OpenConsole( "CON:0/150//100/FontReqClassTest output/WAIT/CLOSE" );
return( main( 0, 0 ) );
}
#endif